<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1.0,user-scalable=no"
    />
    <title>转入</title>
    <style>
      * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
      }
      body,
      html {
        width: 100%;
        height: 100%;
        background-color: #f6f6f6;
      }
      #header {
        height: 58px;
        background: #fff;
        display: flex;
        align-items: center;
        padding: 0 10px;
        display: flex;
        justify-content: space-between;
        box-shadow: 0 0 3px 1px #ccc;
      }
      #header div:nth-of-type(1) {
        display: flex;
        align-items: center;
      }
      #header div:nth-of-type(1) img {
        width: 14px;
        margin-right: 5px;
      }
      #header div:nth-of-type(1) span {
        font-weight: bold;
        font-size: 16px;
      }
      #header div:nth-of-type(2) img {
        width: 138px;
      }
      #box {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        margin: 15px;
      }
      #box .title {
        font-size: 14px;
        color: #000;
        font-weight: bold;
      }
      #box .ipt {
        position: relative;
        margin: 20px 0;
        display: flex;
        align-items: center;
      }
      #box .ipt span {
        position: absolute;
        left: 0;
        top: 3px;
        font-weight: bold;
        font-size: 24px;
      }
      #box .ipt input {
        width: 100%;
        height: 40px;
        padding: 20px 10px;
        background: #fff;
        border: none;
        border-bottom: 1px solid #ccc;
        outline: none;
        padding-left: 40px;
        padding-bottom: 30px;
        font-size: 16px;
      }
      #box .tips {
        display: flex;
        align-items: center;
        font-size: 13px;
      }
      #box .tips span:nth-of-type(2) {
        color: #eb3810;
      }
      #pay {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        margin: 15px;
      }
      #pay .title {
        font-size: 14px;
        color: #000;
        font-weight: bold;
      }
      #pay .box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #f1f1f1;
        border-radius: 10px;
        margin-top: 20px;
        padding: 10px;
      }
      #pay .box .box-left {
        display: flex;
        align-items: center;
      }
      #pay .box .box-left img {
        width: 48px;
      }
      #pay .box .box-left p {
        margin-left: 10px;
        font-size: 14px;
      }
      #pay .box .box-left p:nth-of-type(1) {
        font-size: 14px;
      }
      #pay .box .box-left p:nth-of-type(2) {
        font-size: 12px;
        color: #666;
        margin-top: 10px;
      }
      #pay .box div:nth-of-type(2) img {
        width: 18px;
      }
      #btn {
        margin: 15px;
      }
      #btn button {
        width: 100%;
        height: 52px;
        line-height: 52px;
        border: 1px solid #00b2cc;
        background-color: #00b2cc;
        color: #fff;
        border-radius: 40px;
        font-size: 16px;
        margin: 40px auto 0;
      }
    </style>
  </head>
  <body>
    <div id="header">
      <div id="goReturn">
        <img src="static/images/xiangzuojiantou.png" alt="" />
        <span>转入</span>
      </div>
      <div><img src="static/images/yl-logo.png" alt="" /></div>
    </div>

    <div id="box">
      <div class="title">转入金额 (元)</div>
      <div class="ipt">
        <span>￥</span>
        <input type="number" placeholder="请输入转入金额" />
      </div>
      <div class="tips">
        <span>预计收益到账时间</span>
        <span>10月20日 (星期五)</span>
      </div>
    </div>

    <div id="pay">
      <div class="title">付款方式</div>
      <div class="box">
        <div class="box-left">
          <img class="bank-icon" src="static/images/bank-logo/nyyh.webp" alt="" />
          <div>
            <p><span class="bank-label">农业银行</span> (<span class="bank-value">1233</span>)</p>
            <p>银行卡转入的资金可以免费提现</p>
          </div>
        </div>

        <div><img src="static/images/xiangyoujiantou.png" alt="" /></div>
      </div>
    </div>

    <div id="btn">
      <button>确认转入</button>
    </div>

    <script src="static/js/zepto.min.js" type="text/javascript"></script>
    <script>
      // 返回页面
      $("#goReturn").on("click", function () {
        window.location.href = "middle.html";
      });
      // 选择银行卡
      $("#pay .box").on("click", function () {
        window.location.href = "selectBank.html";
      });
	  
	  // 获取选中的银行
	  var bankInfo = JSON.parse(window.localStorage.getItem('bankInfo'));
	  if(bankInfo) {
		  $('.bank-icon').attr('src', bankInfo.icon);
		  $('.bank-label').text(bankInfo.label);
		  $('.bank-value').text(bankInfo.value);
	  }
	  
    </script>
  </body>
</html>
